﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReportList.aspx.cs" Inherits="Webcar.Sec.ReportList" %>

<%@ Register Assembly="WebPager" Namespace="DevCenterNew" TagPrefix="cc1" %>

<%@ Register Src="../SearchPanel.ascx" TagName="SearchPanel" TagPrefix="uc2" %>

<%@ Register Src="../Controls/NaviBar.ascx" TagName="NaviBar" TagPrefix="uc1" %>


<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>情况汇报</title>
</head>
<body style="overflow:auto">
    <form id="form1" runat="server">
    <div id="reportList">
        <uc1:NaviBar ID="NaviBar1" runat="server" />
        <uc2:SearchPanel ID="SearchPanel1" runat="server"  OnSearchClick="Seach_Click" />
        <hr class="line_blue"/>
        <asp:GridView ID="GridView1" DataKeyNames="xh" ShowHeader = "false" runat="server" AutoGenerateColumns = "False" SkinID="gridviewSkin_line" Width="100%" OnRowDataBound="GridView1_RowDataBound" OnRowCommand="GridView1_RowCommand" OnRowDeleting="GridView1_RowDeleting">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        
                    <div class="C0">
                    <table  width="180px">
                        <tr>
                             <td class="C2">上报单位: </td>
                            <td class="C1"> <asp:HyperLink ID="linkDeptName" runat="server" Text='<%# Bind("dept_name")%>'></asp:HyperLink></td>
                        </tr>
                        <tr>
                             <td class="C2">上报人: </td>
                            <td class="C1"> <asp:HyperLink ID="HyperLink2" runat="server" Text='<%# Bind("man_name")%>'></asp:HyperLink></td>
                        </tr>
                        
                        <tr>
                            <td class="C2">类别:</td>
                            <td class="C1"> <asp:HyperLink ID="linkKind" runat="server" Text='<%# Bind("report_kind_name")%>'></asp:HyperLink></td> 
                        </tr>
                       <tr>
                            <td class="C2">上报月份:</td>
                            <td class="C1"><asp:HyperLink ID="linkNy" runat="server" Text='<%# Bind("ny")%>'></asp:HyperLink></td>
                       </tr>
                    </table>
                    &nbsp;&nbsp;&nbsp;<asp:HyperLink ID="linkEdit" runat="server" Text='编辑' NavigateUrl=""></asp:HyperLink>
                     <asp:LinkButton ID="DeleteBtn" runat="server" Text='删除'  CommandName="Delete" CommandArgument='<%# Bind("xh")%>'></asp:LinkButton>
                     <asp:LinkButton ID="LinkButton1" runat="server" Text='设置为已读' CommandName="SetRead" CommandArgument='<%# Container.DataItemIndex %>'></asp:LinkButton>
                     &nbsp;&nbsp;&nbsp;<asp:Image ID="Image1" ImageUrl="~/App_Themes/Default/image2/newpost2.gif" runat="server" />
                   </div> 
                    </ItemTemplate>
                    <ItemStyle VerticalAlign="Top" />
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                    <div class="C3">
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("content") %>'></asp:Label>
                    </div>
                    </ItemTemplate>
                    <ItemStyle VerticalAlign="Top" />
                    
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
            <div class="pager">
                <div class="addreport">
                [<asp:LinkButton ID="linkPrint" runat="server" Text="查看打印页" OnClick="linkPrint_Click"></asp:LinkButton>]
                    <asp:HyperLink ID="HyperLink1" NavigateUrl="" runat="server">增加上报信息</asp:HyperLink>
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:CheckBox ID="cbNew" runat="server" Text = "查看新情况"  />
                </div>
                <div class="p">
                    <cc1:WebPager Width="400px" ID="WebPager1" runat="server" DisplayText="<span style='color: black'>第{0}页&nbsp共{1}页&nbsp总计{2}条&nbsp每页{3}条</span>"  />
                </div>
            </div>
        </div>
       
    </form>
</body>
</html>
